import { Select, SelectProps } from 'antd';
import { FC } from 'react';

import { useDictStore } from '@/store/dict';

export const CalcTypeSelector: FC<SelectProps> = memo((props) => {
  const { dictCalcTypeOptions } = useDictStore();
  return <Select {...props} options={dictCalcTypeOptions} />;
});
